
export default {
  data() {
    return {
      fieldList: [
        { name: '姓名', field: 'field1' },
        { name: '当前职位', field: 'field2' },
        { name: '供应商', field: 'field3' },
        { name: '供应商编号', field: 'field4' },
      ],
      isEnum: {
        '0': '否',
        '1': '是',
      },
      isOption: [
        { label: '否', value: '0' },
        { label: '是', value: '1' },
      ],

      columns: [
        { title: '序号', width: 50, customRender: (text, record, index) => `${index + 1}`, align: 'center' },
        { title: '物料编码', dataIndex: 'materielCode', width: 120, ellipsis: true },
        { title: '物料名称', dataIndex: 'materielName', width: 120, ellipsis: true },
        { title: '物料规格', dataIndex: 'materielSpecification', width: 120, ellipsis: true },
        { title: '打样要求', dataIndex: 'designDemand', width: 300, ellipsis: true },
        { title: '需求数量', dataIndex: 'demandQuantity', width: 100, ellipsis: true },
        { title: '需求日期', dataIndex: 'demandDate', width: 120, scopedSlots: { customRender: 'date' }, ellipsis: true },
        { title: '是否合格', dataIndex: 'isPass', width: 120, scopedSlots: { customRender: 'isPass' }, ellipsis: true },
        { title: '实际完成数量', dataIndex: 'actualCompletedQuantity', width: 150, scopedSlots: { customRender: 'actualCompletedQuantity' }, ellipsis: true },
        { title: '实际完成日期', dataIndex: 'actualCompletedData', width: 150, scopedSlots: { customRender: 'actualCompletedData' }, ellipsis: true },
        { title: '备注', dataIndex: 'remark', width: 300, scopedSlots: { customRender: 'remark' }, ellipsis: true },
      ]
    }
  }
}